package com.mygdx.game.Stage.Fight.Card;

import com.mygdx.game.Stage.Fight.*;

import java.util.ArrayList;

public class NormalAttackCard extends Card {
    public NormalAttackCard() {
        super("com/mygdx/game/Stage/Fight/NormalAttack.png");
    }


    @Override
    public boolean effect(Energy energy, Fighter fighterL, ArrayList<Fighter> enemies){
        if (energy.energy-this.cost<0)return false;
        Energy.energy-=cost;
        
        enemies.get(0).hp -= 6;  //普通攻击打6血；默认打第一个怪
        return true;
    }


}
